function debounce(callback,wait){
  let timer;
  return function(...args){
    clearTimeout(timer);
    timer = setTimeout(()=>{
      callback.apply(this, ...args);
    });
  }
}
export {
  debounce
}